<template>
  <div class="header-wrap">
    <slot name="left">
      <div class="title-wrap">{{ title }}</div>
    </slot>
    <slot name="right"></slot>
  </div>
</template>
<script>
export default {
  props: {
    title: {
      type: String,
      required: true
    }
  },
}
</script>
<style lang="less" scoped>
.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 35px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #ccc;
  .title-wrap {
    color: #000;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    line-height: 1.2;
    padding-left: 10px;
    &::before {
      content: "";
      position: absolute;
      left: 2.5px;
      top: 0;
      bottom: 0;
      width: 5px;
      border-radius: 5px;
      background: linear-gradient(to bottom, #78aff9, #5a9cf8);
      transform: translateX(-50%);
    }
  }
}
</style>
